package com.wlz.classload;

/**
 *
 * @author wlz
 * @date 2020-11-24
 * result:
 *      A Static Block
 *      A str
 *
 */
public class Test_3 {

    public static void main(String[] args) {
        System.out.printf(Test_1_B.str);

//        while (true);
    }
}

class Test_3_A {
    public static String str = "A str";

    static {
        System.out.println("A Static Block");
    }
}

class Test_3_B extends Test_3_A {
    public static String str = "B str";

    static {
        System.out.println("B Static Block");
    }
}